class EventTimeController < ApplicationController
	layout 'standard'
	
	def create
		@event_times = EventTime.new(params[:event_times])
		#@event_times[:date_begin] = params["date_begin"]
		#@event_times[:date_end] = params["date_end"]
		@event_times[:event_id] = 0
		
		
		if @event_times.save
			redirect_to :controller => 'events', :action => 'new'
			#should link to event creation; it's incorrect now.
		else
			flash[:notice] = "Invalid!"
			redirect_to :controller => 'user', :action => 'error'
		end
			
	end
	
	def new 
		@event_times = EventTime.new
	end
	
	def time_slots
		
	end
end
